<?php
namespace Home\Controller;
use Think\Controller;

class ProjectController extends Controller{
	public function detail(){

		$id = I("id",0,"int");
		$project_info =D('Project')->getProjectById($id);

		//dump($project_info);
		
		$this->assign("project_info",$project_info);

		$this->display();

	}
	//网赚项目列表  没有效果
    public function lists(){
        $project_list = D("Project")->getProjectList();
        $this->assign('project_list',$project_list);//赋值与模板变量
        //dump($project_list);

        $this->display();

    }

	
}
	